home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / fixes / fix021 < prev    next >
Text File  |  1994-08-09  |  3KB  |  76 lines

  1. From theseas!Princeton.EDU!cek Mon, 25 Jul 94 22:12:55 EET
  2. Received: by kriton.UUCP (V1.17-beta/Amiga)
  3.       id <03ug@kriton.UUCP>; Mon, 25 Jul 94 22:12:55 EET
  4. Received: by theseas.ntua.gr with UUCP; Mon, 25 Jul 1994 11:34:04 +0300
  5. Received: from nemesis.ics.forth.gr (nemesis.csi.forth.gr) by pythia.ics.forth.gr via FORTHnet with SMTP;
  6.     id AA01801 (5.65c/FORTH-ICS-3.0-MHS-7.0); Mon, 25 Jul 1994 04:09:42 +0300
  7. Received: from eunet.EU.net by nemesis.ics.forth.gr via FORTHnet with SMTP;
  8.     id AA19516 (5.65c/ICS-1.1); Mon, 25 Jul 1994 04:01:17 +0300 (EET DST)
  9. Received: (uunet@localhost) by eunet.EU.net (8.6.8/8.6.4) with UUCP id DAA14799 for ariadne!theseas!kriton!kyrimis; Mon, 25 Jul 1994 03:05:34 +0200
  10. Received: from Princeton.EDU by relay2.UU.NET with SMTP 
  11.     id QQwzzw26206; Sun, 24 Jul 1994 21:04:57 -0400
  12. Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.111/princeton)
  13.     id AA27894; Sun, 24 Jul 94 21:01:30 -0400
  14. Received: by cs.Princeton.EDU (4.1/1.105)
  15.     id AA27857; Sun, 24 Jul 94 21:02:09 EDT
  16. Received: from arthur.cs.purdue.edu by cs.Princeton.EDU (4.1/1.105)
  17.     id AA27798; Sun, 24 Jul 94 21:01:51 EDT
  18. Received: from icarus.cs.purdue.edu (root@icarus.cs.purdue.edu [128.10.8.56])
  19.     by arthur.cs.purdue.edu (8.6.4/PURDUE_CS-1.3) with ESMTP
  20.     id <UAA25710> for <rayshade-users@cs.Princeton.EDU>; Sun, 24 Jul 1994 20:01:49 -0500
  21. Received: from localhost (bj@localhost [127.0.0.1])
  22.     by icarus.cs.purdue.edu (8.6.4/PURDUE_CS-1.3) with SMTP
  23.     id <UAA29800> for <rayshade-users@cs.Princeton.EDU>; Sun, 24 Jul 1994 20:01:49 -0500
  24. Organization: Institute of Computer Science, 
  25.     Foundation for Research and Technology-Hellas (FORTH)
  26.      Science and Technology Park
  27.      P.O.Box 1385, GR 711 10 Heraklion, Crete, Greece        
  28.      tel.: +30 (81) 39 16 00,  fax: +30 (81) 39 16 01
  29. Message-Id: <199407250101.UAA29800@icarus.cs.purdue.edu>
  30. Date: Sun, 24 Jul 1994 20:01:48 -0500
  31. Errors-To: rayshade-users-request@cs.Princeton.EDU
  32. Remailed-Date: Sun Jul 24 21:01:53 EDT 1994
  33. From: bj@cs.purdue.edu (Ben Jackson)
  34. To: rayshade-users@cs.Princeton.EDU
  35. Subject: right way to add 2d textures
  36.  
  37. Someone just posted a fairly elegant (though slightly buggy :-) hexagon
  38. mapping to comp.graphics.raytracing.  I used it to add a hexagon
  39. texture to rayshade that works like checker (you specify two alternate
  40. surfaces).  Unlike the "checker" texture, though, the hexagonal mapping
  41. doesn't apply well in 3d.  Should my new texture take a `map' component,
  42. and apply like an image?  Is there a better way to handle this?
  43.  
  44. On a side note, while reading checker.c I noticed a small bug.  In the
  45. function which creates a Checker structure, the sizeof the wrong thing
  46. is passed to Malloc().  It doesn't cause a coredump because the two
  47. things happen to be the same size, but I figured it was worth fixing.
  48. The context diff is appended.
  49.  
  50. --Ben
  51.  
  52. *** 1.1    1994/07/24 23:57:39
  53. --- libray/libtext/checker.c    1994/07/24 23:57:54
  54. ***************
  55. *** 34,40 ****
  56.   Surface *surf;
  57.   {
  58.       Checker *checker;
  59. !     checker = (Checker *)Malloc(sizeof(checker));
  60.       checker->surf = surf;
  61.       return checker;
  62.   }
  63. --- 34,40 ----
  64.   Surface *surf;
  65.   {
  66.       Checker *checker;
  67. !     checker = (Checker *)Malloc(sizeof(Checker));
  68.       checker->surf = surf;
  69.       return checker;
  70.   }
  71.  
  72. ----------
  73. Administrivia: rayshade-users-request@cs.princeton.edu
  74. Mailing list: rayshade-users@cs.princeton.edu
  75.  
  76.